package net.xuele.learn.syncHttp;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author: yubo
 * @date: 17:59 2021/4/22
 * @Description: 类描述
 */
@Slf4j
@Component
public class TaskService {


    public String execute() {
        try {
            Thread.sleep(10000);
            log.info("Slow task executed");
            return "Task finished";
        } catch (InterruptedException e) {
            throw new RuntimeException();
        }
    }
}
